home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.3
/
AppInit.3
< prev
next >
Wrap
Text File
|
1995-07-25
|
3KB
|
67 lines
TTTTccccllll____AAAAppppppppIIIInnnniiiitttt((((3333)))) TTTTccccllll ((((7777....0000)))) TTTTccccllll____AAAAppppppppIIIInnnniiiitttt((((3333))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
Tcl_AppInit - Perform application-specific initialization
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ttttccccllll....hhhh>>>>
TTTTccccllll____AAAAppppppppIIIInnnniiiitttt(_i_n_t_e_r_p)
AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
Tcl_Interp *_i_n_t_e_r_p (in) Interpreter for the
application.
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
TTTTccccllll____AAAAppppppppIIIInnnniiiitttt is a procedure that is invoked by the main
programs for Tcl applications such as ttttccccllllsssshhhh and wwwwiiiisssshhhh. Its
purpose is to allow new Tcl applications to be created
without modifying existing main programs such as those for
ttttccccllllsssshhhh and wwwwiiiisssshhhh. To create a new application simply write a
new version of TTTTccccllll____AAAAppppppppIIIInnnniiiitttt to replace the default version
provided by Tcl, then link your new TTTTccccllll____AAAAppppppppIIIInnnniiiitttt with the Tcl
library, which contains the main program from ttttccccllllsssshhhh (be sure
to specify the switch ``----uuuu ____mmmmaaaaiiiinnnn'' to the linker to force it
to use the version of mmmmaaaaiiiinnnn from the Tcl library).
TTTTccccllll____AAAAppppppppIIIInnnniiiitttt is invoked after other initialization in mmmmaaaaiiiinnnn
and before entering the main loop to process commands. Here
are some examples of things that TTTTccccllll____AAAAppppppppIIIInnnniiiitttt might do:
[1] Call initialization procedures for various packages
used by the application. Each initialization procedure
adds new commands to _i_n_t_e_r_p for its package and
performs other package-specific initialization.
[2] Process command-line arguments, which can be accessed
from the Tcl variables aaaarrrrggggvvvv and aaaarrrrggggvvvv0000 in _i_n_t_e_r_p.
[3] Invoke a startup script to initialize the application.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
application, argument, command, initialization, interpreter
Page 1 (printed 7/10/95)